#ifndef INVERT_HH_
# define INVERT_HH_

# include "cv.h"
# include "highgui.h"
# include "tbb/blocked_range2d.h"
# include "tbb/parallel_for.h"

class ApplyInvert {
  IplImage* input;
  IplImage* output;
public:
  ApplyInvert (IplImage* input_);

  void operator() (const tbb::blocked_range2d<int>& r) const;

  IplImage* getOutput ();
};

IplImage*
invert (IplImage* input);

#endif /* !INVERT_HH_ */
